Skip to content

fix race where poll state is changed in unblock and reset#65

Open
markniebur wants to merge 1 commit intoHaivision:masterfrom
markniebur:fix/poll-race
Open

fix race where poll state is changed in unblock and reset#65
markniebur wants to merge 1 commit intoHaivision:masterfrom
markniebur:fix/poll-race

Conversation

@markniebur
Copy link

pollDesc.unblock(), which modifies either pd.rdState or pd.wrState is called by the pollserver thread and only locks pd.lock. However, pd.reset which is called by read/write operations only locks pd.wrLock or pd.rdLock leading to a race.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant